<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@include file="/WEB-INF/page/common/head.jsp"%>
    <div class="right">
        <div class="location">
            <strong>当前位置:</strong>
            <span>商品入库管理页面 >> 商品入库修改页面</span>
        </div>
        <div class="supplierAdd">
        <form id="userForm" name="userForm" method="post" action="${pageContext.request.contextPath }/sys/goodsStorageRecord/update">
			<input type="hidden" name="id" value="${Record.id }"/>
            <div>
                <label for="goodsCode">商品入库编号：</label>
                <input type="text" name="goodsCode" id="goodsCode" value="${Record.goodsCode}">
                <!-- 放置提示信息 -->
                <font color="red"></font>
            </div>
            <div>
                <label for="goodsName">商品名称：</label>
                <input type="text" name="goodsName" id="goodsName" value="${Record.goodsName}">
                <font color="red"></font>
            </div>
            <div>
                <label for="goodsDesc">商品描述：</label>
                <input type="text" name="goodsDesc" id="goodsDesc" value="${Record.goodsDesc}">
                <font color="red"></font>
            </div>
            <div>
                <label for="goodsUnit">商品单位：</label>
                <input type="text" name="goodsUnit" id="goodsUnit" value="${Record.goodsUnit}">
                <font color="red"></font>
            </div>
            <div>
                <label for="goodsCount">入库数量：</label>
                <input type="text" name="goodsCount" id="goodsCount" value="${Record.goodsCount}">
                <font color="red"></font>
            </div>
            <div>
                <label for="totalAmout">入库商品总额：</label>
                <input name="totalAmout" id="totalAmout"  value="${Record.totalAmout}">
            </div>
            <div>
                <label for="payStatus">支付状态：</label>
                <select name="payStatus" id="payStatus">
                    <c:choose>
                        <c:when test="${Record.payStatus == 1 }">
                            <option value="1" selected="selected">未支付</option>
                            <option value="2">已支付</option>
                        </c:when>
                        <c:otherwise>
                            <option value="1">未支付</option>
                            <option value="2" selected="selected">已支付</option>
                        </c:otherwise>
                    </c:choose>
                </select>
            </div>
            <div>
                <label for="supplierId">供货商编号：</label>
                <input type="hidden" value="${Record.supplierId}" id="sid" />
                <select name="supplierId" id="supplierId">
                    <option>${Record.supplierId}</option>
                    <c:forEach items="${codeList}" var="code">
                        <option value="${code.supplierCode}">
                                ${code.supplierCode}
                        </option>
                    </c:forEach>
                </select>
            </div>
			 <div class="supplierAddBtn">
                    <input type="submit" name="save" id="save" value="保存" />
                    <input type="button" id="back" name="back" value="返回" onclick="javascript :history.back(-1);"/>
                </div>
            </form>
        </div>
    </div>
</section>
<%@include file="/WEB-INF/page/common/foot.jsp" %>
